'use strict'

var Router = require('koa-router')
var User = require('../app/controllers/user')
var App = require('../app/controllers/app')

module.exports = function() {
	var router = new Router({
		prefix: '/api/1'
	})
	router.post('/u/signup',App.hasBody, User.signup)
	router.post('/u/verify', App.hasBody, User.verify)
	router.post('/u/update', App.hasBody, App.hasToken,User.update)
	router.post('/u/signature', App.hasBody, App.hasToken,App.signature)
	router.get('/u/get', User.test)
	return router
}